package itcast.service.impl;

import itcast.dao.LackDao;
import itcast.dao.impl.LackDaoImpl;
import itcast.domain.Lack;
import itcast.service.LackService;

import java.util.List;

public class LackServiceImpl implements LackService {
    LackDao lackDao=new LackDaoImpl();
    //查找缺勤记录

    @Override
    public List<Lack> findlack() {
        return lackDao.findLack();
    }

    //添加学生缺寝记录

    @Override
    public void addlack_drom(Lack lack) {
        lackDao.addLack_drom(lack);
    }

    //删除学生缺寝记录

    @Override
    public void deleteLack_drom(String id) {
        lackDao.deletelack_drom(Integer.parseInt(id));
    }
}
